package com.fiveflavors.suittar.gui.mainpanel.view;

import java.net.URL;

import com.fiveflavors.suittar.SuittarCommand;
import com.fiveflavors.suittar.gui.utils.Converter;
import com.fiveflavors.suittar.resources.SuittarResourceManager;

public class SuittarPublicTimeLineView extends SuittarTimeLineView {

	@Override
	public StringBuffer getHeaderContents(SuittarTimeLineViewBean suittarTimeLineViewBean) {
		StringBuffer buf = new StringBuffer();
		buf.append("<DIV ALIGN=\"RIGHT\">");
		URL refreshURL = SuittarResourceManager.getResourceUrl(SuittarResourceManager.ICON_REFRESH);
		buf.append("<A HREF=\"http://suittar20/command?command=" + SuittarCommand.COMMAND_SHOW_PUBLIC + "\">");
		buf.append(Converter.convertURL2ImgTagHtml(refreshURL));
		buf.append("</A>&nbsp;");
		buf.append("</DIV>");
		return buf;		
	}
	
	@Override
	public StringBuffer getFooterContents(SuittarTimeLineViewBean suittarTimeLineViewBean) {
		return new StringBuffer("");
	}

}
